forum

Home / DeveloperSection / Forums / What is the difference between protected, public, package-private, and private in Java?

What is the difference between protected, public, package-private, and private in Java?

Utpal Vishwas19821-Jul-2023

What is the difference between protected, public, package-private, and private in Java?


Updated on 22-Jul-2023
I am Utpal Vishwas from Uttar Pradesh. Have completed my B. Tech. course from MNNIT campus Prayagraj in 2022. I have good knowledge of computer networking.

Can you answer this question?


Answer

1 Answers

Liked By